<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<div id="root">
		<h2 v-once>初始化n的值为:{{ n }}</h2>
		
		<h2>当前的n值为:{{ n }}</h2>
		
		<button @click="n++">带我n+1</button>
	</div>
	<script type="text/javascript">
		Vue.config.productionTip = false;
		new Vue({
			el: "#root",
			data: {
				n: 1
			}
		})
	</script>
	</body>
</html>